<template>
  <div class="main">
    <div ref="stickyHeader" v-sticky>
      <navTop></navTop>
      <!-- <div class="contentboxset">
				<div class="breadBox">
					<el-breadcrumb separator="/">
					<el-breadcrumb-item :to="{ path: '/homework' }">首页</el-breadcrumb-item>
					<el-breadcrumb-item>作业管理</el-breadcrumb-item>
					</el-breadcrumb>
				</div>
			</div> -->
      <div class="contentboxset">
        <div
          class="breadBox"
          :style="
            screenWidth > 1400
              ? 'width:1400px;;'
              : 'width:1200px;min-width:1200px;'
          "
        >
          <el-breadcrumb separator="/">
            <el-breadcrumb-item>作业</el-breadcrumb-item>
            <el-breadcrumb-item>作业管理</el-breadcrumb-item>
          </el-breadcrumb>
        </div>
      </div>
      <div style="background: #f4f7fd; padding-top: 14px">
        <div
          class="searchlist"
          :style="screenWidth > 1400 ? 'width:1400px;' : 'width:1200px'"
        >
          <div style="display: flex; align-items: center">
            <span>学科：</span>
            <el-select
              v-model="courseId"
              placeholder="全部"
              @change="classsifychange"
              clearable
            >
              <el-option key="0" label="全部" value="0"> </el-option>
              <el-option
                v-for="item in subjectlist"
                :key="item.id"
                :label="item.name"
                :value="item.id"
              >
              </el-option>
            </el-select>
            <span>年级：</span>
            <el-select
              v-model="gradeId"
              placeholder="全部"
              @focus="gradelistfocus"
              @change="gradelistchange"
              clearable
            >
              <el-option key="0" label="全部" value="0"> </el-option>
              <el-option
                v-for="item in gradelist"
                :key="item.id"
                :label="item.name"
                :value="item.id"
              >
              </el-option>
            </el-select>
            <span>班级：</span>
            <el-select
              v-model="classId"
              placeholder="全部"
              @focus="handleClassFocus"
              @change="classlistchange"
              clearable
            >
              <el-option key="0" label="全部" value="0"> </el-option>
              <el-option
                v-for="item in classlist"
                :key="item.id"
                :label="item.name"
                :value="item.id"
              >
              </el-option>
            </el-select>
            <span>时间：</span>
            <div class="inputBox" style="width: 300px; position: relative">
              <el-date-picker
                @change="datapickchange"
                style="width: 300px"
                v-model="examdate"
                type="daterange"
                range-separator="至"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                :default-time="['00:00:00', '23:59:59']"
                clearable
              >
              </el-date-picker>
              <!-- <div class="dataicon">
								<img src="../../assets/image/school/data.png" alt="">
							</div> -->
            </div>
          </div>
          <div style="display: flex; align-items: center" class="searchbox">
            <span>搜索：</span>
            <el-input
              v-model="examobj.query.name"
              placeholder="输入作业名称"
              @keyup.enter.native="searchbox"
            ></el-input>
            <i @click="searchbox" style="cursor: pointer"
              ><img
                src="../../assets/image/school/search.png"
                alt=""
                style="width: 16px; height: 16px; margin-top: 9px"
            /></i>
          </div>
        </div>
      </div>
    </div>
    <div class="contentMain">
      <div
        class="contentMainlist"
        :style="screenWidth > 1400 ? 'width:1400px;' : 'width:1200px'"
      >
        <div class="cmlLeft" style="position: relative">
          <empty
            v-if="examlist && examlist.length == 0"
            style="padding-top: 500px"
          ></empty>
          <ul v-else>
            <li v-for="item in examlist">
              <div>
                <h3>{{ item.name }}</h3>
                <p>
                  <span class="blue">日常作业</span>
                  <span class="green">{{
                    !item.subject4 ? "未发布" : "已发布"
                  }}</span>
                  <b class="subjectBlist"
                    ><i v-for="subject in item.examCourses">{{
                      subject.coursesName
                    }}</i></b
                  >
                </p>
                <div class="examInfo">
                  <b><i>作业时间：</i>{{ item.startTime | formatDate }}</b>
                  <b style="display: flex">
                    <i>作业范围：</i>
                    <em
                      v-if="item.studentRange && item.studentRange.length === 0"
                      >--</em
                    >
                    <div v-else>
                      {{
                        item.studentRange && item.studentRange.length > 0
                          ? item.studentRange[0].examGradeName
                          : "--"
                      }}&nbsp;
                      <em v-for="classtag in item.studentRange"
                        >{{
                          classtag.examClassName
                            ? classtag.examClassName
                            : "--"
                        }}班&nbsp;&nbsp;</em
                      >
                    </div>
                  </b>
                </div>
                <div class="examInfo" style="padding-top: 5px">
                  <b
                    ><i>已交：</i><em>{{ item.examPaperCount }}</em></b
                  >
                  <b>
                    <i>未交：</i
                    ><em style="color: #ec555a">{{
                      item.studentCount - item.examPaperCount < 0
                        ? 0
                        : item.studentCount - item.examPaperCount
                    }}</em>
                  </b>
                </div>
              </div>
              <div class="tyboxset">
                <em
                  v-if="isAdmin"
                  @click="
                    $router.push({
                      path: '/mark',
                      query: {
                        subjectid: item.examCourses[0].id,
                        examid: item.id,
                        examtitle: item.name,
                        sujectname: item.examCourses[0].coursesName,
                      },
                    })
                  "
                  >评阅</em
                >
                <em
                  @click="
                    examinfolist(
                      item.examCourses[0].id,
                      item.id,
                      item.name,
                      item.examCourses[0].coursesName
                    )
                  "
                  >查看详情</em
                >
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="examfooter">
      <div
        class="examFootercontent"
        :style="screenWidth > 1400 ? 'width:1400px;' : 'width:1200px'"
      >
        <div>
          <span class="totaldata"
            >共<i>{{ total ? total : 0 }}</i
            >条数据</span
          >
          <b
            v-if="notuploadisshow"
            class="buttonboxsm"
            @click="exportpaperCountundefined"
            >扫描后找不到作业？</b
          >
        </div>
        <div>
          <el-pagination
            background
            @current-change="handleCurrentChange"
            :page-sizes="[20, 50, 100]"
            @size-change="handleSizeChange"
            :page-size="examobj.pageSize"
            layout="sizes, prev, pager, next"
            :total="total"
          >
          </el-pagination>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import navTop from "../../components/homework/headtop.vue";
import examEdite from "../../components/school/exditexam.vue";
import examCopy from "../../components/school/copyexam.vue";
import { get, post, del, put, dele } from "../../request/api.js";
import empty from "../../components/school/empty.vue";
import { mapGetters } from "vuex";
export default {
  computed: {
    ...mapGetters(["getScreenWidth"]),
    screenWidth() {
      return this.getScreenWidth;
    },
  },
  data() {
    return {
      searchInput: "",
      time: "",
      classify: "",
      grade: "",
      status: "",
      timelist: ["2024年", "2023年"],
      classifylist: [
        { name: "全部", id: "0" },
        { name: "作业/测验", id: 1 },
        { name: "月考", id: 2 },
        { name: "期中", id: 3 },
        { name: "期末", id: 4 },
      ],
      gradelist: [],
      statuslist: [
        { name: "开启", bolen: true },
        { name: "停用", bolen: false },
      ],
      addExamIshow: false,
      currentPage4: 4,
      examlist: [],
      examCopyIshow: false,
      examdate: "",
      total: null,
      examobj: {
        page: 1,
        pageSize: 20,
        query: {
          startTime: undefined,
          endTime: undefined,
          gradeId: 0,
          classId: 0,
          courseId: 0,
          name: "",
        },
      },
      addexamtype: 0,
      stopexamlist: [],
      stoptotal: null,
      stoppage: 1,
      stoppagesize: 3,
      stopexamishow: false,
      classlist: [],
      subjectlist: [],
      gradeId: "",
      classId: "",
      courseId: "",
      notuploadisshow: false,
      gradeidnew: "",

      isAdmin: false,
    };
  },
  created() {
    get("/addscore/check", {}).then((res) => {
      this.isAdmin = res.data;
    });
  },
  mounted() {
    // 获取考试列表
    this.examclicklist();
    this.subjectlisttab();
    this.notuploadisshowclick();
  },
  methods: {
    handleClassFocus() {
      if (
        this.gradeId &&
        this.gradeId !== "0" &&
        (!this.classlist || this.classlist.length === 0)
      ) {
        this.classlistchange(this.gradeId);
      }
    },
    // notuploadisshow
    notuploadisshowclick() {
      get("/school/schoolinfo").then((res) => {
        if (res.code == 200) {
          if (res.data.id == "664332148084741") {
            this.notuploadisshow = true;
          } else {
            this.notuploadisshow = false;
          }
        }
      });
    },
    // 点击跳转无法识别的试卷
    exportpaperCountundefined() {
      this.$router.push({ path: "/unablefindanswersheet" });
    },
    handleSizeChange(val) {
      // //console.log(`每页 ${val} 条`);
      this.examobj.pageSize = val;
    },
    examclicklist() {
      this.examlist = [];
      this.examobj.query.gradeId =
        this.gradeId == "全部" || this.gradeId == "" ? 0 : this.gradeId;
      this.examobj.query.classId =
        this.classId == "全部" || this.classId == "" ? 0 : this.classId;
      this.examobj.query.courseId =
        this.courseId == "全部" || this.courseId == "" ? 0 : this.courseId;
      post("/work/list", this.examobj).then((res) => {
        if (res.code == 200) {
          let items = res.data.items.map((item) => {
            const { examCourses, ...rest } = item; // 分离出 examCourses 和其他属性
            const newExamCourses = {};
            // 遍历 examCourses 并根据 examStage 和 markHubStatus 分类
            examCourses.forEach((course) => {
              const stageKey = `subject${course.examStage}`;
              const statusKey =
                course.markHubStatus === 3 ? "examFaish" : stageKey;
              if (!newExamCourses[statusKey]) {
                newExamCourses[statusKey] = [];
              }
              newExamCourses[statusKey].push(course);
            });

            // 合并新的属性和原始的 examCourses
            return { ...rest, examCourses, ...newExamCourses };
          });
          // //console.info('items	',items)
          this.examlist = items;
          this.total = res.data.total;
        } else {
          this.$message.error(res.message);
        }
      });
    },
    // 处理每页条数变化
    handleSizeChange(val) {
      this.examobj.pageSize = val;
      this.examclicklist();
    },
    // 处理当前页码变化
    handleCurrentChange(val) {
      this.examobj.page = val;
      this.examclicklist();
    },
    handleCurrentChange1(val) {
      this.stoppage = val;
      this.stopexambutton();
    },
    //获取年纪列表
    gradelistfocus() {
      get("/grade/list")
        .then((res) => {
          // //console.info(res)
          if (res.code == 200) {
            this.gradelist = res.data;
          } else {
            this.$message.error(res.message);
          }
        })
        .catch((error) => {
          // 处理错误
          this.$message.error(res.message);
        });
    },
    // 考试概览
    examinfolist(subjectid, examid, examtitle, sujectname) {
      let params = {
        id: examid,
        subjectId: subjectid,
      };
      sessionStorage.setItem("examContent", JSON.stringify(params));
      this.$router.push(
        "/studentscore?subjectid=" +
          subjectid +
          "&examid=" +
          examid +
          "&examtitle=" +
          examtitle +
          "&sujectname=" +
          sujectname
      );
    },
    gradelistchange(val) {
      this.examobj.page = 1;
      this.gradeidnew = val;
      if (val != 0 && val) {
        this.classlistchange();
        this.examclicklist();
      } else {
        this.classlist = [];
        this.classId = "";
        this.examclicklist();
      }
    },
    classlistchange(val) {
      this.classId = val;
      if (!this.gradeidnew || this.gradeidnew === "0") {
        this.classlist = [];
        this.classId = "";
        return;
      }
      console.info("sssss");
      let obj = { gradeId: this.gradeidnew };
      get("/grade/classlist", obj).then((res) => {
        // //console.info(res)
        if (res.code == 200) {
          this.classlist = res.data;
          this.examobj.page = 1;
          this.examclicklist();
        }
      });
    },
    // 获取科目列表
    subjectlisttab() {
      get("/course/alllist").then((res) => {
        // //console.info(res)
        if (res.code == 200) {
          this.subjectlist = res.data;
        } else {
          this.$message.error(res.message);
        }
      });
    },
    classsifychange(val) {
      this.examobj.page = 1;
      this.examclicklist();
    },
    datapickchange(value) {
      // //console.info(value)
      this.examobj.page = 1;
      if (value != null) {
        this.examobj.query.startTime = value[0];
        this.examobj.query.endTime = value[1];
        this.examclicklist();
      } else {
        this.examobj.query.startTime = undefined;
        this.examobj.query.endTime = undefined;
        this.examclicklist();
      }
    },
    searchbox() {
      this.examobj.page = 1;
      this.examclicklist();
    },
  },
  components: { navTop, examEdite, examCopy, empty },
};
</script>

<style scoped>
.main {
  background: #f4f7fd;
  min-height: 100vh;
}
/* .main::-webkit-scrollbar {
		 height:8px;
		background-color: #eee;
		border-radius:10px;
	}
	.main::-webkit-scrollbar-track {
		background-color: #eee;
		border-radius:10px;
	}
	.main::-webkit-scrollbar-thumb {
		background: #619CF5;
		border-radius: 10px;
	} */
.contentMain {
  width: auto;
  margin: 0 auto;
  padding-bottom: 70px;
  position: relative;
}
.contentboxset {
  background: #fff;
  height: 32px;
  border-top: solid 2px #f4f7fd;
}
.breadBox {
  width: 1440px;
  margin: 0 auto;
  min-width: 1200px;
  line-height: 32px;
}
.el-breadcrumb {
  width: auto;
  margin: 0 auto;
  line-height: 30px;
  font-size: 14px;
}
.el-breadcrumb__inner a,
.el-breadcrumb__inner.is-link {
  color: #b3b8c2;
}
.searchlist {
  width: 1440px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 10px;
  padding: 15px 40px 15px 0;
  align-items: center;
  margin: 0 auto;
}
.searchlist span {
  font-size: 16px;
  color: #557292;
  margin-left: 24px;
}
.searchlist .el-select {
  width: 124px;
  margin-right: 16x;
}
.searchlist >>> .el-input__inner {
  border-radius: 10px;
  height: 35px;
  font-size: 16px;
  line-height: 35px;
  border: 1px solid #d8e4f0;
}
.searchlist >>> .el-range__inner {
  border-radius: 10px;
  height: 35px;
  font-size: 16px;
  line-height: 35px;
}
.searchlist >>> .el-range-editor.el-input__inner {
  padding: 0 10px;
}
.searchlist >>> .el-date-editor .el-range__icon {
  font-size: 16px;
  line-height: 35px;
  display: none;
}
.searchlist >>> .el-date-editor .el-range-input {
  font-size: 16px;
  line-height: 35px;
}
.searchlist >>> .el-date-editor .el-range-separator {
  font-size: 16px;
  line-height: 35px;
}
.searchlist >>> .el-input__icon {
  line-height: 28px;
  font-size: 16px;
  color: #557292;
  font-weight: bold;
  font-size: 14px;
}
.searchlist b {
  width: 124px;
  height: 34px;
  background: #295cff;
  border-radius: 10px;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
}
.contentMainlist {
  width: 1440px;
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 15px auto 0;
}
.cmlLeft {
  width: 100%;
}
.clrtitle {
  font-size: 16px;
  color: #2a303b;
  position: relative;
  display: block;
  height: 40px;
}
.clrtitle::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 6px;
  background: linear-gradient(90deg, #527bff 0%, #ffffff 100%);
  border-radius: 3px;
  left: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.5;
}
.clrtitle i {
  position: absolute;
  left: 0;
  bottom: 0;
  font-style: normal;
  z-index: 2;
}
.clrdownlost li {
  display: flex;
  justify-content: space-between;
  padding-left: 28px;
  font-size: 14px;
  padding: 6px 0 6px 35px;
  margin-top: 14px;
}
.clrdownlost li:first-child {
  background: url(../../assets/image/school/pdf.jpg) no-repeat;
  background-size: contain;
}
.clrdownlost li:last-child {
  background: url(../../assets/image/school/wj.jpg) no-repeat;
  background-size: contain;
}
.boxcentercontact {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.boxcentercontact em {
  box-sizing: border-box;
  display: inline-block;
  width: 145px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dee1e7;
  text-align: left;
  font-size: 14px;
  color: #557292;
  padding-left: 36px;
  line-height: 34px;
}
.boxcentercontact em:first-child {
  background: #f2f6fb url(../../assets/image/school/mess.jpg) no-repeat 15px
    center;
}
.boxcentercontact em:last-child {
  background: #f2f6fb url(../../assets/image/school/bj.jpg) no-repeat 15px
    center;
}
.cmlLeft ul li {
  display: flex;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0px 4px 16px 0px rgba(85, 114, 146, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  align-items: center;
  padding: 24px;
}
.cmlLeft ul li:last-child {
  margin-bottom: 0;
}
.cmlLeft ul li h3 {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #2a303b;
  padding-bottom: 0px;
}
.cmlLeft ul li h3 span.blue {
  background: rgba(41, 92, 255, 0.04);
  border-radius: 6px;
  border: 1px solid #295cff;
  color: #295cff;
  display: inline-block;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  padding: 0 10px;
  margin-right: 8px;
}
.cmlLeft ul li p {
  display: flex;
  padding: 10px 0;
}
.cmlLeft ul li p span {
  display: inline-block;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  margin-right: 10px;
  padding: 0 10px;
}
.cmlLeft ul li p span.blue {
  background: rgba(41, 92, 255, 0.04);
  border-radius: 6px;
  border: 1px solid #295cff;
  color: #295cff;
}
.cmlLeft ul li p span.green {
  background: rgba(40, 143, 65, 0.04);
  border-radius: 6px;
  border: 1px solid #288f41;
  color: #288f41;
}
.examInfo {
  display: flex;
  align-items: center;
}
.examInfo b {
  font-weight: normal;
  font-size: 14px;
  color: #8e96a4;
  position: relative;
  padding-right: 14px;
  margin-right: 14px;
}
.examInfo b i {
  font-style: normal;
  color: #8e96a4;
}
.examInfo b::after {
  content: "";
  width: 1px;
  height: 8px;
  background: #dee1e7;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.examInfo b:last-child::after {
  content: "";
  width: 1px;
  height: 8px;
  background: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.examInfo em {
  color: #8e96a4;
}
.boxinfostyle {
  display: flex;
  color: #8e96a4;
  font-size: 14px;
  margin-top: 10px;
}
.boxinfostyle i {
  font-style: normal;
  padding-right: 10px;
  margin-right: 10px;
  color: #333;
}
.boxinfostyle i::after {
  content: "";
  width: 1px;
  height: 8px;
  background: #dee1e7;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.boxinfostyle i:last-child::after {
  content: "";
  width: 1px;
  height: 8px;
  background: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.tyboxset {
  width: 215px;
  flex-shrink: 0;
  text-align: right;
}
.tyboxset em {
  display: inline-block;
  width: 104px;
  height: 34px;
  border-radius: 10px;
  line-height: 34px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.tyboxset em {
  background: #288f41;
  color: #fff;
}
.examfooter {
  width: 100%;
  height: 54px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 16px 0px rgba(85, 114, 146, 0.1);
  position: fixed;
  left: 0;
  bottom: 0;
}
.examFootercontent {
  box-sizing: border-box;
  width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.examFootercontent .totaldata {
  font-size: 14px;
}
.examFootercontent .totaldata i {
  display: inline-block;
  color: #295cff;
  font-style: normal;
  line-height: 54px;
  padding: 0 3px;
}
.ewmbox {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 14px;
}
.ewmbox li {
  box-sizing: border-box;
  width: 145px;
  height: 175px;
  background: #f2f6fb;
  border-radius: 20px;
  text-align: center;
  padding-top: 14px;
}
.ewmbox li i {
  display: block;
  font-size: 14px;
  color: #2a303b;
  font-style: normal;
  padding-top: 5px;
}
.ewmbox li img {
  width: 121px;
  height: 121px;
  border-radius: 10px;
}
.boxbslmedu {
  font-size: 12px;
  color: #8e96a4;
  text-align: center;
  padding-top: 44px;
  line-height: 1.8;
}
.inputBox {
  width: 200px;
}
.tableContent {
  border-radius: 10px;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
.tableContent::-webkit-scrollbar {
  width: 6px;
  background-color: #eee;
  border-radius: 10px;
}
.tableContent::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 10px;
}
.tableContent::-webkit-scrollbar-thumb {
  background: #619cf5;
  border-radius: 10px;
}
.tableContent table {
  border-radius: 10px;
  border: 1px solid rgba(216, 228, 240, 0.5);
}
.tableContent table tr th {
  font-size: 14px;
  font-weight: normal;
  background: #e8f0fa;
  height: 42px;
}
.tableContent table tr th:first-child {
  border-radius: 8px 0 0 0;
}
.tableContent table tr th:last-child {
  border-radius: 0 8px 0 0;
}
.tableContent table tr td {
  height: 42px;
  text-align: center;
  font-size: 14px;
  border-right: solid 1px rgba(216, 228, 240, 0.34);
}
.tableContent table tr td:last-child {
  border-right: none;
}
.tableContent table tr td i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #999;
}
.tableContent table tr td em {
  display: block;
}
.tableContent table tr td span {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.tableContent table tr td span em {
  font-size: 12px;
  font-style: normal;
}
.tableContent table tr td span::after {
  content: "";
  width: 43px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: #000;
}
.tableContent table tr td span.green {
  color: #288f41;
}
.tableContent table tr td span.green::after {
  content: "";
  width: 43px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: #288f41;
}
.tableContent table tr td span.blue {
  color: #295cff;
}
.tableContent table tr td span.blue::after {
  content: "";
  width: 43px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: #295cff;
}
.tableContent table tr td span.red {
  color: #ec555a;
}
.tableContent table tr td span.red::after {
  content: "";
  width: 43px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: #ec555a;
}
.tableContent table tr td span.gray {
  color: #d8e4f0;
}
.tableContent table tr td span.gray::after {
  content: "";
  width: 43px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: #d8e4f0;
}
.tableContent table tr:nth-child(3n) {
  background: #fafafb;
}
.el-message-box__status.el-icon-warning {
  color: #ec555a !important;
}
.examFootercontent
  >>> .el-pagination.is-background
  .el-pager
  li:not(.disabled).active {
  background-color: #295cff !important;
}
.header {
  background-color: #f8f8f8;
  text-align: center;
  transition: all 0.3s ease; /* 添加过渡效果 */
}

.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 吸顶时添加阴影 */
}
.el-button--primary {
  background: #ec555a !important;
}
.breadBox >>> .el-breadcrumb__inner a,
.breadBox >>> .el-breadcrumb__inner.is-link {
  font-weight: normal;
}
.breadBox >>> .el-breadcrumb__item:last-child .el-breadcrumb__inner,
.breadBox >>> .el-breadcrumb__item:last-child .el-breadcrumb__inner a,
.breadBox >>> .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.breadBox >>> .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
  font-weight: bold;
}
.searchbox {
  display: flex;
  align-items: center;
  margin-top: 10px;
  position: relative;
  width: 404px;
}
.searchbox span {
  display: block;
  width: 60px;
}
.searchbox >>> .el-input__inner {
  width: 324px;
}
.searchbox i {
  display: block;
  position: absolute;
  right: 10px;
  top: 0;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-left: solid 1px #dcdfe6;
  text-align: center;
  color: #606266;
}
.searchlist >>> .el-date-editor .el-input__prefix {
  right: 5px;
  left: auto;
  order: 2;
}
.searchlist >>> .el-date-editor .el-input__icon {
  line-height: 28px;
}
.searchlist >>> .el-date-editor .el-input__inner {
  padding-left: 15px;
  padding-right: 30px;
}
.buttonboxsm {
  display: inline-block;
  width: 146px;
  height: 34px;
  background: rgba(236, 85, 90, 0.1);
  border-radius: 10px;
  color: rgba(236, 85, 90, 1);
  line-height: 34px;
  padding: 0 10px;
  margin-left: 14px;
  cursor: pointer;
}
.dataicon {
  position: absolute;
  right: 0;
  width: 34px;
  height: 35px;
  border-left: solid 1px #d8e4f0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dataicon img {
  width: 14px;
  height: 14px;
}
.subjectBlist {
  display: inline-block;
  padding: 0 10px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  background: rgba(231, 76, 60, 0.04);
  border-radius: 6px;
  border: 1px solid #e74c3c;
  color: #e74c3c;
}
.subjectBlist i {
  font-style: normal;
}
</style>